package com.zslc.foreignoption.controller;

import com.zslc.foreignoption.entity.FollowAccount;
import com.zslc.foreignoption.entity.FollowTopic;
import com.zslc.foreignoption.service.FollowTopicService;
import com.zslc.foreignoption.util.ResultCMS;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @version 1.0
 * @description:
 * @author: Gaoyc
 * @date: 2024-06-23 10:51
 **/
@RequestMapping("/followTopic")
@RestController
public class FollowTopicController {
    @Resource
    private FollowTopicService followTopicService;


    @GetMapping("/list")
    public ResultCMS list(){
        List<FollowTopic> list = followTopicService.list();
        return ResultCMS.success(list);
    }


}
